package com.geek.main;

import com.geek.pub.PublicOrder;
import com.geek.sub.SubscribeOrder;
import redis.clients.jedis.JedisPool;
import redis.clients.jedis.JedisPoolConfig;

public class RedisMain {

    public static void main(String[] args) {

        JedisPoolConfig config = new JedisPoolConfig();
        JedisPool jedisPool = new JedisPool(config, "10.70.25.139", 6379 , 1000, "redis@20190312^");
        String channelName = "ORDER";

        SubscribeOrder subscribeOrder = new SubscribeOrder(jedisPool, channelName);
        PublicOrder publicOrder = new PublicOrder(jedisPool, channelName);



    }
}
